# -*- coding: utf-8 -*-
# @File    : api_url.py
# @Author  : Xiewh
# @Email   : 1679860867@qq.com
# @Time    : 2020/11/28 18:48
# @Function:

# 服务器HOST
SERVICE_HOST = "yiban.xn50.com"

# 易班PC服务器HOST
YIBAN_CHROME_HOST = "www.yiban.cn"

# 易班Mobile服务器HOST
YIBAN_MOBILE_HOST = "mobile.yiban.cn"


def url_split(url, api, type=1):
    if type == 1:
        return "http://" + url + "/" + api
    elif type == 2:
        return "https://" + url + "/" + api
    else:
        return 0
